<div id="main_wrap">
	<div class="center_wrap clearfix">
        <h2>{$lang242}</h2>
		<div id="public_wrap">
        	<form id="new_user" name="new_user" action="{$baseurl}/signup.php" method="post" class="new_user">
				{if $error ne ""}
                {include file="show_error.tpl"}
                {/if}
                {if $showmessage ne ""}
                {include file="show_message.tpl"}
                {/if}
            <p>
              <label for="user_login">{$lang163}</label>
              	<input name="username" id="username" type="text" value="{$smarty.request.username}" size="30" />
              	<br />
              	<span id="checkavailable"><a href="#usernamecheck" onclick="fxCheckUsername('checkavailable','username')">[{$lang243}]</a></span>
                <span id="isavailable" style="display:none">[{$lang244}]</span>
                <span id="isnotavailable" style="display:none">[{$lang245}]</span>
                <span id="usernameisempty" style="display:none">{$lang246}</span>
                <span id="checkagain" style="display:none"><a href="#usernamecheckagain" onclick="fxCheckUsername('checkavailable','username')">[{$lang247}]</a></span>
            </p>
            <p class="add_top">
              	<label for="user_email_address">{$lang160}</label>
        	  	<input type="text" name="email" value="{$smarty.request.email}" size="30"/>
            </p>
            <p>
              <label for="user_email_address_confirmation">{$lang134}</label>
              	<input class="check" type="radio" value="1" name="gender" id="gender" {if $smarty.request.gender ne "0"}checked{/if}> {$lang135}&nbsp;&nbsp;&nbsp;
            	<input class="check" type="radio" value="0" name="gender" id="gender" {if $smarty.request.gender eq "0"}checked{/if}> {$lang136}
            </p>
            <p class="add_top">
              	<label for="user_password">{$lang225}</label>
        		<input type="password" name="password" value="" size="30" id="password" onkeydown="updateMeter();" onkeyup="updateMeter();" /><br/>
            </p>
            <p class="add_top">
            	<div style="padding-left:150px;">
              	<link href="{$cssurl}/passwordmeter.css" rel="stylesheet" type="text/css" />
		        <div class="strengthMeter" id="strengthMeter"><div class="scoreBar" id="scoreBar"></div></div>
                </div>
            </p>
            <p>
              	<label for="user_password_confirmation">{$lang248}</label>
              	<input type="password" name="confirmpassword" value="" size="30"/>
            </p>              
            <p class="add_top_long">
              {$lang250} <a href="{$baseurl}/termsofuse.php" target="_blank">{$lang251}</a>.
            </p>
               
            {if $enable_captcha ne "0"}
            <p class="padded-form">
              <img src="{$baseurl}/include/captcha.php" />
        	</p>
            <p>
              	<label for="captcha">{$lang249}</label>
                <input name="imagecode" type="text" value="" size="30"/>
            </p>
            {/if}
            
            <p><br /><button type="submit">{$lang171}</button></p>
			<input type="hidden" name="register" value="{$lang171}" />
            <input type="hidden" name="redirect" value="{$smarty.request.redirect}" />
          </form>
		</div>      
        <div class="clear"></div>
	</div>
</div>